const mongoose = require('mongoose');

const orderSchema = new mongoose.Schema({
    time:String,
    state:String,
    users:{
        type: mongoose.Schema.Types.ObjectId,
        ref: "userModel"
    },
    snaps:{
        type: mongoose.Schema.Types.ObjectId,
        ref: "snapModel"
    }
});

module.exports = mongoose.model('orderModel',orderSchema,'order');